Fix bug #13743 with crashes due to recursive add-text-properties.
authorEli Zaretskii <eliz@gnu.org>
Mon, 25 Feb 2013 16:13:42 +0000 (18:13 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 25 Feb 2013 16:13:42 +0000 (18:13 +0200)
commit9fe1160ba80f9ec6f72e933b6e36d1fa9c8db3d0
treed1f8c691cca914267d6015151267611bf9874e42
parent8244ff6406e42df51af6f917fbb98d689f077444
Fix bug #13743 with crashes due to recursive add-text-properties.

 src/textprop.c (Fadd_text_properties, Fremove_text_properties)
 (Fremove_list_of_text_properties): Skip all of the intervals in
 the region between START and END that already have resp. don't
 have the requested properties, not just the first one.  Add
 assertions that the loop afterwards always modifies the
 properties.
src/ChangeLog
src/textprop.c